\hypertarget{class_k_v_value}{\section{K\+V\+Value类 参考}
\label{class_k_v_value}\index{K\+V\+Value@{K\+V\+Value}}
}


属性值  




{\ttfamily \#include $<$K\+V\+Property.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_k_v_value_ace2056ab937c9c8c88a7fdec1665c69c}{K\+V\+Value} ()
\begin{DoxyCompactList}\small\item\em 属性值构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value_a4afb07587e533e9672d059c5e38d717f}{$\sim$\+K\+V\+Value} ()
\begin{DoxyCompactList}\small\item\em 属性值虚构函数 \end{DoxyCompactList}\item 
int \hyperlink{class_k_v_value_a704c997d8358b4721a0b7a4ba050fc77}{base\+Type} ()
\begin{DoxyCompactList}\small\item\em 属性值类型 \end{DoxyCompactList}\item 
void \hyperlink{class_k_v_value_a51652e897131d07764911c0f643d76a1}{clear} ()
\begin{DoxyCompactList}\small\item\em 属性值清零 \end{DoxyCompactList}\item 
bool \hyperlink{class_k_v_value_a1133784b6586dffd2eea390a2c7fba1a}{init\+With\+String} (const string \&value\+String)
\begin{DoxyCompactList}\small\item\em 从格式化的字符串中初始化属性值 \end{DoxyCompactList}\item 
string \hyperlink{class_k_v_value_aeb9e4a6632c20455743420a7c401c6bb}{serialize} ()
\begin{DoxyCompactList}\small\item\em 序列化属性值 \end{DoxyCompactList}\item 
int \hyperlink{class_k_v_value_a4c29a2801b915feb16da486826b4dfbf}{to\+Int} ()
\begin{DoxyCompactList}\small\item\em 属性值转int \end{DoxyCompactList}\item 
double \hyperlink{class_k_v_value_a92bfe4a87492929bfc31c21fa14d7cc4}{to\+Double} ()
\begin{DoxyCompactList}\small\item\em 属性值转double \end{DoxyCompactList}\item 
string \hyperlink{class_k_v_value_ad3ad31059a0eef41b2c4e35002bce111}{to\+String} ()
\begin{DoxyCompactList}\small\item\em 属性值转string \end{DoxyCompactList}\item 
\hyperlink{class_int_array}{Int\+Array} \hyperlink{class_k_v_value_a257cd0155a5945746b8617cb6557d7fc}{to\+Int\+Array} ()
\begin{DoxyCompactList}\small\item\em 属性值转\+Int\+Array \end{DoxyCompactList}\item 
\hyperlink{class_double_array}{Double\+Array} \hyperlink{class_k_v_value_aaa64543701ca774afaba71efde37ddbc}{to\+Double\+Array} ()
\begin{DoxyCompactList}\small\item\em 属性值转\+Double\+Array \end{DoxyCompactList}\item 
\hyperlink{class_string_array}{String\+Array} \hyperlink{class_k_v_value_ac22d60f0a2ea379e98b0d9f277bd5448}{to\+String\+Array} ()
\begin{DoxyCompactList}\small\item\em 属性值转\+String\+Array \end{DoxyCompactList}\item 
\hyperlink{class_tuple}{Tuple} \hyperlink{class_k_v_value_a0eabc89586525f7c21ff83aeba6d4992}{to\+Tuple} ()
\begin{DoxyCompactList}\small\item\em 属性值转元组 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a40955a803ffd576abe90c894a9a904fa}{operator=} (const int \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a2f2f643730a94cf378decc2603788930}{operator=} (const double \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_acbeea5d1606dd1d0d005cfde455b3897}{operator=} (const string \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a7e289a361268f32b7f756670e8d7b7b7}{operator=} (const \hyperlink{class_int_array}{Int\+Array} \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a2931b00ced3e9730d8615cfdcec82b7f}{operator=} (const \hyperlink{class_double_array}{Double\+Array} \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a479ba9a5714b3835a5445b0cac11c336}{operator=} (const \hyperlink{class_string_array}{String\+Array} \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_value_a8bb58191b38d71144eb34d5701e47bb6}{operator=} (const \hyperlink{class_tuple}{Tuple} \&)
\begin{DoxyCompactList}\small\item\em 赋值运算符重载 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
属性值 

\subsection{构造及析构函数说明}
\hypertarget{class_k_v_value_ace2056ab937c9c8c88a7fdec1665c69c}{\index{K\+V\+Value@{K\+V\+Value}!K\+V\+Value@{K\+V\+Value}}
\index{K\+V\+Value@{K\+V\+Value}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{K\+V\+Value}]{\setlength{\rightskip}{0pt plus 5cm}K\+V\+Value\+::\+K\+V\+Value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_ace2056ab937c9c8c88a7fdec1665c69c}


属性值构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a4afb07587e533e9672d059c5e38d717f}{\index{K\+V\+Value@{K\+V\+Value}!````~K\+V\+Value@{$\sim$\+K\+V\+Value}}
\index{````~K\+V\+Value@{$\sim$\+K\+V\+Value}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{$\sim$\+K\+V\+Value}]{\setlength{\rightskip}{0pt plus 5cm}K\+V\+Value\+::$\sim$\+K\+V\+Value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a4afb07587e533e9672d059c5e38d717f}


属性值虚构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_k_v_value_a704c997d8358b4721a0b7a4ba050fc77}{\index{K\+V\+Value@{K\+V\+Value}!base\+Type@{base\+Type}}
\index{base\+Type@{base\+Type}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{base\+Type}]{\setlength{\rightskip}{0pt plus 5cm}int K\+V\+Value\+::base\+Type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a704c997d8358b4721a0b7a4ba050fc77}


属性值类型 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值类型(\+B\+A\+S\+E\+T\+Y\+P\+E\+\_\+\+E) 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a51652e897131d07764911c0f643d76a1}{\index{K\+V\+Value@{K\+V\+Value}!clear@{clear}}
\index{clear@{clear}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void K\+V\+Value\+::clear (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a51652e897131d07764911c0f643d76a1}


属性值清零 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a1133784b6586dffd2eea390a2c7fba1a}{\index{K\+V\+Value@{K\+V\+Value}!init\+With\+String@{init\+With\+String}}
\index{init\+With\+String@{init\+With\+String}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{init\+With\+String}]{\setlength{\rightskip}{0pt plus 5cm}bool K\+V\+Value\+::init\+With\+String (
\begin{DoxyParamCaption}
\item[{const string \&}]{value\+String}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a1133784b6586dffd2eea390a2c7fba1a}


从格式化的字符串中初始化属性值 


\begin{DoxyParams}{参数}
{\em value\+String} & 格式化字符串 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
目前支持的属性值格式有\+: 
\end{DoxyNote}
\hypertarget{class_k_v_value_a40955a803ffd576abe90c894a9a904fa}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const int \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a40955a803ffd576abe90c894a9a904fa}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a2f2f643730a94cf378decc2603788930}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const double \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a2f2f643730a94cf378decc2603788930}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_acbeea5d1606dd1d0d005cfde455b3897}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const string \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_acbeea5d1606dd1d0d005cfde455b3897}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a7e289a361268f32b7f756670e8d7b7b7}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Int\+Array} \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a7e289a361268f32b7f756670e8d7b7b7}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a2931b00ced3e9730d8615cfdcec82b7f}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Double\+Array} \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a2931b00ced3e9730d8615cfdcec82b7f}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a479ba9a5714b3835a5445b0cac11c336}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf String\+Array} \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a479ba9a5714b3835a5445b0cac11c336}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a8bb58191b38d71144eb34d5701e47bb6}{\index{K\+V\+Value@{K\+V\+Value}!operator=@{operator=}}
\index{operator=@{operator=}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Value\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Tuple} \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a8bb58191b38d71144eb34d5701e47bb6}


赋值运算符重载 


\begin{DoxyParams}{参数}
{\em value} & 右值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_value_aeb9e4a6632c20455743420a7c401c6bb}{\index{K\+V\+Value@{K\+V\+Value}!serialize@{serialize}}
\index{serialize@{serialize}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{serialize}]{\setlength{\rightskip}{0pt plus 5cm}string K\+V\+Value\+::serialize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_aeb9e4a6632c20455743420a7c401c6bb}


序列化属性值 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
序列化字符串 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a92bfe4a87492929bfc31c21fa14d7cc4}{\index{K\+V\+Value@{K\+V\+Value}!to\+Double@{to\+Double}}
\index{to\+Double@{to\+Double}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+Double}]{\setlength{\rightskip}{0pt plus 5cm}double K\+V\+Value\+::to\+Double (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a92bfe4a87492929bfc31c21fa14d7cc4}


属性值转double 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
浮点数 
\end{DoxyReturn}
\hypertarget{class_k_v_value_aaa64543701ca774afaba71efde37ddbc}{\index{K\+V\+Value@{K\+V\+Value}!to\+Double\+Array@{to\+Double\+Array}}
\index{to\+Double\+Array@{to\+Double\+Array}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+Double\+Array}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Double\+Array} K\+V\+Value\+::to\+Double\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_aaa64543701ca774afaba71efde37ddbc}


属性值转\+Double\+Array 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
浮点数组 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a4c29a2801b915feb16da486826b4dfbf}{\index{K\+V\+Value@{K\+V\+Value}!to\+Int@{to\+Int}}
\index{to\+Int@{to\+Int}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+Int}]{\setlength{\rightskip}{0pt plus 5cm}int K\+V\+Value\+::to\+Int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a4c29a2801b915feb16da486826b4dfbf}


属性值转int 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
整数 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a257cd0155a5945746b8617cb6557d7fc}{\index{K\+V\+Value@{K\+V\+Value}!to\+Int\+Array@{to\+Int\+Array}}
\index{to\+Int\+Array@{to\+Int\+Array}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+Int\+Array}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Int\+Array} K\+V\+Value\+::to\+Int\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a257cd0155a5945746b8617cb6557d7fc}


属性值转\+Int\+Array 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
整型数组 
\end{DoxyReturn}
\hypertarget{class_k_v_value_ad3ad31059a0eef41b2c4e35002bce111}{\index{K\+V\+Value@{K\+V\+Value}!to\+String@{to\+String}}
\index{to\+String@{to\+String}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+String}]{\setlength{\rightskip}{0pt plus 5cm}string K\+V\+Value\+::to\+String (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_ad3ad31059a0eef41b2c4e35002bce111}


属性值转string 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
字符串 
\end{DoxyReturn}
\hypertarget{class_k_v_value_ac22d60f0a2ea379e98b0d9f277bd5448}{\index{K\+V\+Value@{K\+V\+Value}!to\+String\+Array@{to\+String\+Array}}
\index{to\+String\+Array@{to\+String\+Array}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+String\+Array}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String\+Array} K\+V\+Value\+::to\+String\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_ac22d60f0a2ea379e98b0d9f277bd5448}


属性值转\+String\+Array 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
字符串数组 
\end{DoxyReturn}
\hypertarget{class_k_v_value_a0eabc89586525f7c21ff83aeba6d4992}{\index{K\+V\+Value@{K\+V\+Value}!to\+Tuple@{to\+Tuple}}
\index{to\+Tuple@{to\+Tuple}!K\+V\+Value@{K\+V\+Value}}
\subsubsection[{to\+Tuple}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tuple} K\+V\+Value\+::to\+Tuple (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_value_a0eabc89586525f7c21ff83aeba6d4992}


属性值转元组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
元组 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_k_v_property_8h}{K\+V\+Property.\+h}\item 
libemb/src/K\+V\+Property.\+cpp\end{DoxyCompactItemize}
